perm filename GFTYPE.CH[MF,ALS] blob
sn#764284 filedate 1984-08-08 generic text, type C, neo UTF8
COMMENT ⊗ VALID 00006 PAGES
C REC PAGE DESCRIPTION
C00001 00001
C00002 00002 @x Tell WEAVE to print only the changes:
C00003 00003 @x Specify compiler directives:
C00005 00004 @x Opening packed binary files:
C00007 00005 @x Set up terminal I/O:
C00008 00006 @x Use tabs in image output
C00015 ENDMK
C⊗;
@x Tell WEAVE to print only the changes:
\centerline{\hsize 5in\baselineskip9pt
\vbox{\ninerm\noindent
The preparation of this report
was supported in part by the National Science
Foundation under grants IST-8201926 and MCS-8300984,
and by the System Development Foundation. `\TeX' is a
trademark of the American Mathematical Society.}}}
@y
\centerline{(This listing shows the changes for {\sc WAITS} only)}}
\let\maybe=\iffalse
@z
@x Specify compiler directives:
@p program GF_type(@!gf_file,@!output);
@y
@p @t\4@>@{$D-,W+@} {no debugging overhead}
@{$D+@} {FIX ME!!! ???? fixme}
program GF_type(@!gf_file,@!output);
@z
@x Opening packed binary files:
@p procedure open_gf_file; {prepares to read packed bytes in |gf_file|}
begin reset(gf_file);
@y
@p procedure open_gf_file; {prepares to read packed bytes in |gf_file|}
begin reset(gf_file,'','/B:8');
@z
@x Set up terminal I/O:
and |term_out| for terminal output.
@↑system dependencies@>
@<Glob...@>=
@!buffer:array[0..terminal_line_length] of ASCII_code;
@!term_in:text_file; {the terminal, considered as an input file}
@!term_out:text_file; {the terminal, considered as an output file}
@y
and |term_out| for terminal output.
@↑system dependencies@>
@d term_in==tty
@d term_out==tty
@<Glob...@>=
@!buffer:array[0..terminal_line_length] of ASCII_code;
@z
@x Use tabs in image output
begin print(' '); decr(n);
@y We substitute a tab for eight spaces when positioned at a multiple of 8.
begin if (n≥8)∧((x-min_x-n)mod 8=0) then
begin print(chr(@'11)); n←n-8;
end
else begin print(' '); decr(n);
end;
@z